package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.basic.BasicStoUnit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wl
 * @description 针对表【basic_sto_unit(WMS货位信息表)】的数据库操作Mapper
 * @createDate 2024-12-13 12:08:36
 * @Entity com.bzkj.basicinfo.domain.basic.BasicStoUnit
 */
public interface BasicStoUnitMapper
{

    List<BasicStoUnit> findBasicStoUnit(BasicStoUnit entity);

    List<BasicStoUnit> printBasicStoUnit(@Param("stoIds")List<Integer> stoIds);

    void updateBasicStoUnitEnableStatusAll(@Param("list") List<Integer> list, @Param("status") String status);

    void updateBasicStoUnitEnableStatus(@Param("enableState") String enableState,@Param("stoUnitId") String stoUnitId);

    /**
     * 根据货位id获取货位信息
     *
     * @param stoUnitId
     * @return
     */
    BasicStoUnit getByStoUnitId(@Param("stoUnitId") String stoUnitId);

    /**
     * 删除货位
     *
     * @param stoUnitId
     * @return
     */
    int deleteByStoUnitId(@Param("stoUnitId") String stoUnitId);

    /**
     * 批量删除货位
     *
     * @param stoUnitIds
     * @return
     */
    int batchDeleteByStoUnitId(@Param("stoUnitIds") List<String> stoUnitIds);
}




